package GEMonitor;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class GEClientHandler extends SimpleChannelInboundHandler<GEMsg> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, GEMsg msg) throws Exception {
//        if(msg.msg_type.equals("Q0"))
//        {
//            GEMsg rep = new GEMsg();
//            rep.msg_type = "D0";
//            rep.systemID = "000000000001";
//
//            ctx.writeAndFlush(rep);
//        }
//        else if(msg.msg_type.equals("D2"))
//        {
//            GEMsg rep = new GEMsg();
//            rep.msg_type = "D2";
//            rep.content = Helper.TEA32(msg.content, "000000000001");
//
//            ctx.writeAndFlush(rep);
//        }
//        else if(msg.msg_type.equals("D0"))
//        {
//            //登录成功
//        }
    }
    
}